package com.newer.procurementsystem.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysMenuExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysMenuExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMenuidIsNull() {
            addCriterion("menuId is null");
            return (Criteria) this;
        }

        public Criteria andMenuidIsNotNull() {
            addCriterion("menuId is not null");
            return (Criteria) this;
        }

        public Criteria andMenuidEqualTo(Integer value) {
            addCriterion("menuId =", value, "menuid");
            return (Criteria) this;
        }

        public Criteria andMenuidNotEqualTo(Integer value) {
            addCriterion("menuId <>", value, "menuid");
            return (Criteria) this;
        }

        public Criteria andMenuidGreaterThan(Integer value) {
            addCriterion("menuId >", value, "menuid");
            return (Criteria) this;
        }

        public Criteria andMenuidGreaterThanOrEqualTo(Integer value) {
            addCriterion("menuId >=", value, "menuid");
            return (Criteria) this;
        }

        public Criteria andMenuidLessThan(Integer value) {
            addCriterion("menuId <", value, "menuid");
            return (Criteria) this;
        }

        public Criteria andMenuidLessThanOrEqualTo(Integer value) {
            addCriterion("menuId <=", value, "menuid");
            return (Criteria) this;
        }

        public Criteria andMenuidIn(List<Integer> values) {
            addCriterion("menuId in", values, "menuid");
            return (Criteria) this;
        }

        public Criteria andMenuidNotIn(List<Integer> values) {
            addCriterion("menuId not in", values, "menuid");
            return (Criteria) this;
        }

        public Criteria andMenuidBetween(Integer value1, Integer value2) {
            addCriterion("menuId between", value1, value2, "menuid");
            return (Criteria) this;
        }

        public Criteria andMenuidNotBetween(Integer value1, Integer value2) {
            addCriterion("menuId not between", value1, value2, "menuid");
            return (Criteria) this;
        }

        public Criteria andParentmenuIsNull() {
            addCriterion("parentMenu is null");
            return (Criteria) this;
        }

        public Criteria andParentmenuIsNotNull() {
            addCriterion("parentMenu is not null");
            return (Criteria) this;
        }

        public Criteria andParentmenuEqualTo(Integer value) {
            addCriterion("parentMenu =", value, "parentmenu");
            return (Criteria) this;
        }

        public Criteria andParentmenuNotEqualTo(Integer value) {
            addCriterion("parentMenu <>", value, "parentmenu");
            return (Criteria) this;
        }

        public Criteria andParentmenuGreaterThan(Integer value) {
            addCriterion("parentMenu >", value, "parentmenu");
            return (Criteria) this;
        }

        public Criteria andParentmenuGreaterThanOrEqualTo(Integer value) {
            addCriterion("parentMenu >=", value, "parentmenu");
            return (Criteria) this;
        }

        public Criteria andParentmenuLessThan(Integer value) {
            addCriterion("parentMenu <", value, "parentmenu");
            return (Criteria) this;
        }

        public Criteria andParentmenuLessThanOrEqualTo(Integer value) {
            addCriterion("parentMenu <=", value, "parentmenu");
            return (Criteria) this;
        }

        public Criteria andParentmenuIn(List<Integer> values) {
            addCriterion("parentMenu in", values, "parentmenu");
            return (Criteria) this;
        }

        public Criteria andParentmenuNotIn(List<Integer> values) {
            addCriterion("parentMenu not in", values, "parentmenu");
            return (Criteria) this;
        }

        public Criteria andParentmenuBetween(Integer value1, Integer value2) {
            addCriterion("parentMenu between", value1, value2, "parentmenu");
            return (Criteria) this;
        }

        public Criteria andParentmenuNotBetween(Integer value1, Integer value2) {
            addCriterion("parentMenu not between", value1, value2, "parentmenu");
            return (Criteria) this;
        }

        public Criteria andMenunameIsNull() {
            addCriterion("menuName is null");
            return (Criteria) this;
        }

        public Criteria andMenunameIsNotNull() {
            addCriterion("menuName is not null");
            return (Criteria) this;
        }

        public Criteria andMenunameEqualTo(String value) {
            addCriterion("menuName =", value, "menuname");
            return (Criteria) this;
        }

        public Criteria andMenunameNotEqualTo(String value) {
            addCriterion("menuName <>", value, "menuname");
            return (Criteria) this;
        }

        public Criteria andMenunameGreaterThan(String value) {
            addCriterion("menuName >", value, "menuname");
            return (Criteria) this;
        }

        public Criteria andMenunameGreaterThanOrEqualTo(String value) {
            addCriterion("menuName >=", value, "menuname");
            return (Criteria) this;
        }

        public Criteria andMenunameLessThan(String value) {
            addCriterion("menuName <", value, "menuname");
            return (Criteria) this;
        }

        public Criteria andMenunameLessThanOrEqualTo(String value) {
            addCriterion("menuName <=", value, "menuname");
            return (Criteria) this;
        }

        public Criteria andMenunameLike(String value) {
            addCriterion("menuName like", value, "menuname");
            return (Criteria) this;
        }

        public Criteria andMenunameNotLike(String value) {
            addCriterion("menuName not like", value, "menuname");
            return (Criteria) this;
        }

        public Criteria andMenunameIn(List<String> values) {
            addCriterion("menuName in", values, "menuname");
            return (Criteria) this;
        }

        public Criteria andMenunameNotIn(List<String> values) {
            addCriterion("menuName not in", values, "menuname");
            return (Criteria) this;
        }

        public Criteria andMenunameBetween(String value1, String value2) {
            addCriterion("menuName between", value1, value2, "menuname");
            return (Criteria) this;
        }

        public Criteria andMenunameNotBetween(String value1, String value2) {
            addCriterion("menuName not between", value1, value2, "menuname");
            return (Criteria) this;
        }

        public Criteria andMenupathIsNull() {
            addCriterion("menuPath is null");
            return (Criteria) this;
        }

        public Criteria andMenupathIsNotNull() {
            addCriterion("menuPath is not null");
            return (Criteria) this;
        }

        public Criteria andMenupathEqualTo(String value) {
            addCriterion("menuPath =", value, "menupath");
            return (Criteria) this;
        }

        public Criteria andMenupathNotEqualTo(String value) {
            addCriterion("menuPath <>", value, "menupath");
            return (Criteria) this;
        }

        public Criteria andMenupathGreaterThan(String value) {
            addCriterion("menuPath >", value, "menupath");
            return (Criteria) this;
        }

        public Criteria andMenupathGreaterThanOrEqualTo(String value) {
            addCriterion("menuPath >=", value, "menupath");
            return (Criteria) this;
        }

        public Criteria andMenupathLessThan(String value) {
            addCriterion("menuPath <", value, "menupath");
            return (Criteria) this;
        }

        public Criteria andMenupathLessThanOrEqualTo(String value) {
            addCriterion("menuPath <=", value, "menupath");
            return (Criteria) this;
        }

        public Criteria andMenupathLike(String value) {
            addCriterion("menuPath like", value, "menupath");
            return (Criteria) this;
        }

        public Criteria andMenupathNotLike(String value) {
            addCriterion("menuPath not like", value, "menupath");
            return (Criteria) this;
        }

        public Criteria andMenupathIn(List<String> values) {
            addCriterion("menuPath in", values, "menupath");
            return (Criteria) this;
        }

        public Criteria andMenupathNotIn(List<String> values) {
            addCriterion("menuPath not in", values, "menupath");
            return (Criteria) this;
        }

        public Criteria andMenupathBetween(String value1, String value2) {
            addCriterion("menuPath between", value1, value2, "menupath");
            return (Criteria) this;
        }

        public Criteria andMenupathNotBetween(String value1, String value2) {
            addCriterion("menuPath not between", value1, value2, "menupath");
            return (Criteria) this;
        }

        public Criteria andPermsIsNull() {
            addCriterion("perms is null");
            return (Criteria) this;
        }

        public Criteria andPermsIsNotNull() {
            addCriterion("perms is not null");
            return (Criteria) this;
        }

        public Criteria andPermsEqualTo(String value) {
            addCriterion("perms =", value, "perms");
            return (Criteria) this;
        }

        public Criteria andPermsNotEqualTo(String value) {
            addCriterion("perms <>", value, "perms");
            return (Criteria) this;
        }

        public Criteria andPermsGreaterThan(String value) {
            addCriterion("perms >", value, "perms");
            return (Criteria) this;
        }

        public Criteria andPermsGreaterThanOrEqualTo(String value) {
            addCriterion("perms >=", value, "perms");
            return (Criteria) this;
        }

        public Criteria andPermsLessThan(String value) {
            addCriterion("perms <", value, "perms");
            return (Criteria) this;
        }

        public Criteria andPermsLessThanOrEqualTo(String value) {
            addCriterion("perms <=", value, "perms");
            return (Criteria) this;
        }

        public Criteria andPermsLike(String value) {
            addCriterion("perms like", value, "perms");
            return (Criteria) this;
        }

        public Criteria andPermsNotLike(String value) {
            addCriterion("perms not like", value, "perms");
            return (Criteria) this;
        }

        public Criteria andPermsIn(List<String> values) {
            addCriterion("perms in", values, "perms");
            return (Criteria) this;
        }

        public Criteria andPermsNotIn(List<String> values) {
            addCriterion("perms not in", values, "perms");
            return (Criteria) this;
        }

        public Criteria andPermsBetween(String value1, String value2) {
            addCriterion("perms between", value1, value2, "perms");
            return (Criteria) this;
        }

        public Criteria andPermsNotBetween(String value1, String value2) {
            addCriterion("perms not between", value1, value2, "perms");
            return (Criteria) this;
        }

        public Criteria andIconIsNull() {
            addCriterion("icon is null");
            return (Criteria) this;
        }

        public Criteria andIconIsNotNull() {
            addCriterion("icon is not null");
            return (Criteria) this;
        }

        public Criteria andIconEqualTo(String value) {
            addCriterion("icon =", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotEqualTo(String value) {
            addCriterion("icon <>", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconGreaterThan(String value) {
            addCriterion("icon >", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconGreaterThanOrEqualTo(String value) {
            addCriterion("icon >=", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconLessThan(String value) {
            addCriterion("icon <", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconLessThanOrEqualTo(String value) {
            addCriterion("icon <=", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconLike(String value) {
            addCriterion("icon like", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotLike(String value) {
            addCriterion("icon not like", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconIn(List<String> values) {
            addCriterion("icon in", values, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotIn(List<String> values) {
            addCriterion("icon not in", values, "icon");
            return (Criteria) this;
        }

        public Criteria andIconBetween(String value1, String value2) {
            addCriterion("icon between", value1, value2, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotBetween(String value1, String value2) {
            addCriterion("icon not between", value1, value2, "icon");
            return (Criteria) this;
        }

        public Criteria andMenutypeIsNull() {
            addCriterion("menuType is null");
            return (Criteria) this;
        }

        public Criteria andMenutypeIsNotNull() {
            addCriterion("menuType is not null");
            return (Criteria) this;
        }

        public Criteria andMenutypeEqualTo(String value) {
            addCriterion("menuType =", value, "menutype");
            return (Criteria) this;
        }

        public Criteria andMenutypeNotEqualTo(String value) {
            addCriterion("menuType <>", value, "menutype");
            return (Criteria) this;
        }

        public Criteria andMenutypeGreaterThan(String value) {
            addCriterion("menuType >", value, "menutype");
            return (Criteria) this;
        }

        public Criteria andMenutypeGreaterThanOrEqualTo(String value) {
            addCriterion("menuType >=", value, "menutype");
            return (Criteria) this;
        }

        public Criteria andMenutypeLessThan(String value) {
            addCriterion("menuType <", value, "menutype");
            return (Criteria) this;
        }

        public Criteria andMenutypeLessThanOrEqualTo(String value) {
            addCriterion("menuType <=", value, "menutype");
            return (Criteria) this;
        }

        public Criteria andMenutypeLike(String value) {
            addCriterion("menuType like", value, "menutype");
            return (Criteria) this;
        }

        public Criteria andMenutypeNotLike(String value) {
            addCriterion("menuType not like", value, "menutype");
            return (Criteria) this;
        }

        public Criteria andMenutypeIn(List<String> values) {
            addCriterion("menuType in", values, "menutype");
            return (Criteria) this;
        }

        public Criteria andMenutypeNotIn(List<String> values) {
            addCriterion("menuType not in", values, "menutype");
            return (Criteria) this;
        }

        public Criteria andMenutypeBetween(String value1, String value2) {
            addCriterion("menuType between", value1, value2, "menutype");
            return (Criteria) this;
        }

        public Criteria andMenutypeNotBetween(String value1, String value2) {
            addCriterion("menuType not between", value1, value2, "menutype");
            return (Criteria) this;
        }

        public Criteria andOrdernumIsNull() {
            addCriterion("orderNum is null");
            return (Criteria) this;
        }

        public Criteria andOrdernumIsNotNull() {
            addCriterion("orderNum is not null");
            return (Criteria) this;
        }

        public Criteria andOrdernumEqualTo(Integer value) {
            addCriterion("orderNum =", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotEqualTo(Integer value) {
            addCriterion("orderNum <>", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumGreaterThan(Integer value) {
            addCriterion("orderNum >", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumGreaterThanOrEqualTo(Integer value) {
            addCriterion("orderNum >=", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumLessThan(Integer value) {
            addCriterion("orderNum <", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumLessThanOrEqualTo(Integer value) {
            addCriterion("orderNum <=", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumIn(List<Integer> values) {
            addCriterion("orderNum in", values, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotIn(List<Integer> values) {
            addCriterion("orderNum not in", values, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumBetween(Integer value1, Integer value2) {
            addCriterion("orderNum between", value1, value2, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotBetween(Integer value1, Integer value2) {
            addCriterion("orderNum not between", value1, value2, "ordernum");
            return (Criteria) this;
        }

        public Criteria andMenutimeIsNull() {
            addCriterion("menuTime is null");
            return (Criteria) this;
        }

        public Criteria andMenutimeIsNotNull() {
            addCriterion("menuTime is not null");
            return (Criteria) this;
        }

        public Criteria andMenutimeEqualTo(Date value) {
            addCriterion("menuTime =", value, "menutime");
            return (Criteria) this;
        }

        public Criteria andMenutimeNotEqualTo(Date value) {
            addCriterion("menuTime <>", value, "menutime");
            return (Criteria) this;
        }

        public Criteria andMenutimeGreaterThan(Date value) {
            addCriterion("menuTime >", value, "menutime");
            return (Criteria) this;
        }

        public Criteria andMenutimeGreaterThanOrEqualTo(Date value) {
            addCriterion("menuTime >=", value, "menutime");
            return (Criteria) this;
        }

        public Criteria andMenutimeLessThan(Date value) {
            addCriterion("menuTime <", value, "menutime");
            return (Criteria) this;
        }

        public Criteria andMenutimeLessThanOrEqualTo(Date value) {
            addCriterion("menuTime <=", value, "menutime");
            return (Criteria) this;
        }

        public Criteria andMenutimeIn(List<Date> values) {
            addCriterion("menuTime in", values, "menutime");
            return (Criteria) this;
        }

        public Criteria andMenutimeNotIn(List<Date> values) {
            addCriterion("menuTime not in", values, "menutime");
            return (Criteria) this;
        }

        public Criteria andMenutimeBetween(Date value1, Date value2) {
            addCriterion("menuTime between", value1, value2, "menutime");
            return (Criteria) this;
        }

        public Criteria andMenutimeNotBetween(Date value1, Date value2) {
            addCriterion("menuTime not between", value1, value2, "menutime");
            return (Criteria) this;
        }

        public Criteria andDetalsIsNull() {
            addCriterion("detals is null");
            return (Criteria) this;
        }

        public Criteria andDetalsIsNotNull() {
            addCriterion("detals is not null");
            return (Criteria) this;
        }

        public Criteria andDetalsEqualTo(String value) {
            addCriterion("detals =", value, "detals");
            return (Criteria) this;
        }

        public Criteria andDetalsNotEqualTo(String value) {
            addCriterion("detals <>", value, "detals");
            return (Criteria) this;
        }

        public Criteria andDetalsGreaterThan(String value) {
            addCriterion("detals >", value, "detals");
            return (Criteria) this;
        }

        public Criteria andDetalsGreaterThanOrEqualTo(String value) {
            addCriterion("detals >=", value, "detals");
            return (Criteria) this;
        }

        public Criteria andDetalsLessThan(String value) {
            addCriterion("detals <", value, "detals");
            return (Criteria) this;
        }

        public Criteria andDetalsLessThanOrEqualTo(String value) {
            addCriterion("detals <=", value, "detals");
            return (Criteria) this;
        }

        public Criteria andDetalsLike(String value) {
            addCriterion("detals like", value, "detals");
            return (Criteria) this;
        }

        public Criteria andDetalsNotLike(String value) {
            addCriterion("detals not like", value, "detals");
            return (Criteria) this;
        }

        public Criteria andDetalsIn(List<String> values) {
            addCriterion("detals in", values, "detals");
            return (Criteria) this;
        }

        public Criteria andDetalsNotIn(List<String> values) {
            addCriterion("detals not in", values, "detals");
            return (Criteria) this;
        }

        public Criteria andDetalsBetween(String value1, String value2) {
            addCriterion("detals between", value1, value2, "detals");
            return (Criteria) this;
        }

        public Criteria andDetalsNotBetween(String value1, String value2) {
            addCriterion("detals not between", value1, value2, "detals");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}